var updateCourt = $('#update_btn').click(function(){
    //var params = $('form').serialize();
    //console.log($('#venue_id').val());
    //console.log($('#venue_name').val());
    var params = {
        "venue_id": $('#venue_id2').val(),
        "venue_name": $('#venue_name2').val(),
        "sport": $('#sport2').val(),
        "open_time": $('#open_time2').val(),
        "close_time": $('#close_time2').val(),
        "court_num": $('#court_num2').val()
    };
    //console.log(params);
    $.ajax({
        url:"http://localhost:8080/gdou_gms/updateVenueAction.action",
        type:"post",
        dataType:"json",
        data:params,
        success:function(data){
            alert(data);
        },
        error:function(){
            alert("系统异常，请稍后重试！");
        }
    });   
});